home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / GX Libraries / StorageLibrary.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-02  |  1.5 KB  |  56 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        StorageLibrary.h
  3.     
  4.     Contains:    primitive flattening library routine interfaces
  5.     
  6.     Written By:    Cary Clark, Georgiann Delaney, Michael Fairman, Dave Good, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink, Chris Yerga
  7.     
  8.     Copyright:    ©1992-1995 by Apple Computer, Inc.  All rights reserved.
  9.     
  10.     Change History (most recent first):
  11.     
  12.          <2>      5/1/95    jtd        bringing in final 1.1 source changes
  13.          <1>      1/9/95    JD        First checked in.
  14.  
  15. */
  16.  
  17. #ifndef __STORAGELIBRARY__
  18. #define __STORAGELIBRARY__
  19.  
  20. #include <Types.h>
  21. #include <GXTypes.h>
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27. /* for compatibility with old headers */
  28. #define storageLibraryIncludes
  29.  
  30. struct userSpool {
  31.     gxSpoolBlock    spool;
  32.     long            reference;
  33.     long            position;
  34.     long            size;
  35.     void            *data;
  36.     void            *userField;
  37. };
  38.  
  39. typedef struct userSpool userSpool;
  40.  
  41. Handle ShapeToHandle(gxShape source);
  42. Handle ShapeToHandleWithFlags(gxShape source, gxFlattenFlag flags);
  43. gxShape HandleToShape(Handle target, long count, const gxViewPort portList[]);
  44. void ShapeToFRef(gxShape source, short fileRef);
  45. gxShape FRefToShape(short fileRef, long count, const gxViewPort portList[]);
  46. void ShapeToFile(gxShape source, Str255 fileName, short vRefNum, OSType creator, OSType fileType);
  47. gxShape FileToShape(Str255 fileName, short vRefNum, long count, const gxViewPort portList[]);
  48. Handle FontToHandle(gxFont fontID, long glyphBits[]);
  49. gxFont HandleToFont(Handle source);
  50.  
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54.  
  55. #endif /* __STORAGELIBRARY__ */
  56.